<li>
    <a href="<?php echo $view->router->generate('sitetree_edit', array('id' => $tree->getId())); ?>" target="2">
        Редактировать `<b><?php echo $tree->getTitle(); ?></b>`</a>
    <br />
    <a href="<?php echo $view->router->generate('module_view', array('id' => $tree->getId())); ?>" target="2">
        Просмотреть `<?php echo $tree->getTitle(); ?>`</a>
    <ul><?php foreach($tree->getChildren() as $leaf) echo $view->render('Site1Bundle:Sitetree:treebit', array('tree' => $leaf)); ?></ul>
</li>